package io;

import java.io.BufferedWriter;
import java.io.FileOutputStream;
import java.io.OutputStreamWriter;
import java.io.PrintWriter;
import java.nio.charset.StandardCharsets;

public class PWDemo {
    public static void main(String[] args) throws Exception {
//        FileOutputStream fos=new FileOutputStream("pw.txt");
//        OutputStreamWriter osw=new OutputStreamWriter(fos, StandardCharsets.UTF_8);
//        BufferedWriter bw=new BufferedWriter(osw);
//        PrintWriter pw=new PrintWriter(bw);
        PrintWriter pw=new PrintWriter("pw.txt");
        pw.println("问到何时葡萄先熟透");
        pw.println("你要静候，再静候");
        System.out.println("写出完毕");
        pw.close();



    }
}
